'''
time包

'''
import time

# 案例1：time()（了解一下
# time1 = time.time()  # 时间戳时间
# for i in range(1000):
#     print(i)
# time2 = time.time()
# print(f'程序的运行时间是：{time2 - time1}')

# 案例2：localtime()（了解一下
print(time.localtime())

# 案例3：
print(time.strftime('%Y-%m-%d %H:%M:%S'))  # string format time
print(time.strftime('%Y-%m-%d %H_%M_%S'))  # string format time
print(time.strftime('%H:%M:%S'))  # string format time
print(time.strftime('%Y-%m-%d'))  # string format time
